<h2 class="contentTitle">编辑摘要</h2>
<form action="<?php echo SITE_URL . 'index.php?c='.$controller.'&a=ajaxEdit';?>" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
    <div class="pageContent">
        <div layouth="97" class="pageFormContent nowrap" style="height: 376px; overflow: auto;">
            <dl>
                <dt>摘要地址：</dt>
                <dd>
                    <input type="text" name="url" size="60" class="required textInput valid" value="<?php echo $info['url']; ?>">
                    <span class="inputInfo">填写摘要地址</span>
                </dd>
            </dl>
            <dl>
                <dt>摘要名称：</dt>
                <dd>
                    <input type="text" name="title" size="60" class="required textInput valid" value="<?php echo $info['title']; ?>">
                    <input type="hidden" name="summary_id" value="<?php echo $info['summary_id']; ?>">
                    <span class="inputInfo">填写摘要名称</span>
                </dd>
            </dl>
            <dl>
                <dt>摘要来源：</dt>
                <dd>
                    <select class="combox" name="source_id">
                        <?php
                        foreach($source_list as $k=>$v){
                            ?>
                            <option value="<?php echo $k; ?>" <?php echo $info['source_id'] == $k ? 'selected="true"' : ''; ?>><?php echo $v; ?></option>
                        <?php
                        }
                        ?>
                    </select>
                    <span class="inputInfo">请选择来源</span>
                </dd>
            </dl>
            <dl>
                <dt>摘要状态：</dt>
                <dd>
                    <select class="combox" name="status">
                        <?php
                        foreach($status_list as $k=>$v){
                            ?>
                            <option value="<?php echo $k; ?>" <?php echo $info['status'] == $k ? 'selected="true"' : ''; ?>><?php echo $v; ?></option>
                        <?php
                        }
                        ?>
                    </select>
                    <span class="inputInfo">摘要显示状态</span>
                </dd>
            </dl>
            <dl>
                <dt>资讯摘要：</dt>
                <dd>
                    <textarea rows="10" cols="60" name="summary" id="summary" class="required textInput"><?php echo $info['summary']; ?></textarea>
                    <span class="inputInfo">摘要列举3点内容以换行分隔</span>
                </dd>
            </dl>
            <dl>
                <dt>资讯内容：</dt>
                <dd style="width: 700px">
                    <textarea name="content" id="content" style="height: 350px; width: 700px;"><?php echo $info['content']; ?></textarea>
                </dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">确认</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
            </ul>
        </div>
    </div>
</form>
<script type="text/javascript">
    //动态加载 Kindeditor 文本编辑器
    var  content ;
    $.getScript('<?php echo SITE_URL; ?>/theme/js/kindeditor-4.1.7/kindeditor-min.js', function() {
        KindEditor.basePath = '<?php echo SITE_URL."/theme/js/kindeditor-4.1.7/"; ?>';
        content = KindEditor.create('textarea[name="content"]', {
            resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : false,
			items : [
				'source', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'link'],
            afterBlur: function () { this.sync(); }
        });
    });
</script>